package com.fzz.learning_forum.service;

import com.fzz.learning_forum.domain.Course;
import com.fzz.learning_forum.domain.Course_People;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

@Service
public interface CourseService {

    //创建课程
    public Integer createCourse(Course course);

    //分页查询所有课程、
    public PageInfo<Course> selectAllCourse(Integer page,Integer count);

    //分页查询自己创建的所有课程、
    public PageInfo<Course> selectCourseById(Integer page,Integer count,Integer id);

    //根据id查询课程的详细信息、
    public Course selectCourseDetails(Integer id);

    //查询所有该课程的成员
    public PageInfo<Course_People> selectAllCoursePeolpeById(Integer id,Integer page,Integer count);
}
